home *** CD-ROM | disk | FTP | other *** search
- name Maho XY Plane G17
-
- % 00
- N >5
- G >2
- X ->3.>4
- x ->3.>4 X
- Y ->3.>4
- y ->3.>4 Y
- Z ->3.>4
- z ->3.>4 Z
- d ->3.>4 Z
- I ->3.>4
- i ->3.>4 I
- J ->3.>4
- j >3.>4 J
- K ->3.>4
- k >3.>4 K
- F >3.2
- B ->3.>3 Add 180
- b >3.>4 B
- R >3.>4
- T >2
- M >2
- S >4
- W 00
- ( 00
- ! >3.>4
- @ >3.>4
- # >3.>4
- ) 00
- $ 00
-
- ModalLetters Y y Z F B z # List of letters that are modal
-
- ModalGs 81 83 84 85 86 90 # List of g codes that are modal
-
- Sequence#s N 1 1 1 # Char, freq, incr & start
- First#? N # Y or N 'Output 1st sequence no.
- Last#? N # Y or N 'Output last sequence no.
-
- HCode X # X or X U 'Horizontal char.
- VCode Y # Y or Y V 'Vertical char.
- Dcode Z # Depth char.
- FeedCode F # Feed rate char.
-
- Comment ( ) # Begin End comment char.
-
- Spindle 3 4 5 # Cw, ccw & stop m codes
- Coolant 13 9 8 # On, Off & Mist m codes
- DComp 41 42 40 # Left, Right & Cancel m codes
- LComp 43 49 # On & Off codes
-
- Feed G1 # Linear move
- Rapid G0 # Rapid positioning word
- Cw G2 # Circular move clockwise
- Ccw G3 # Circular move counter clockwise
-
- Inc/Abs G 91 90 # Inc & Abs char. & values
-
- CtrCode R # I J or R or I J K L
- Helical? N
-
- Spaces? Y # Y or N 'Spaces between words
-
- Incremental? N # Y or N 'Inc or abs output
- CtrIncremental? N # Y or N 'Inc or abs I & J
- ByQuadrants? Y # Y or N 'Break arcs at quadrants
-
- ZRestart? N # Y or N 'New cycle if diff. depths
-
- RevSigns d B # List of letters to reverse signs
-
- UppercaseComments? Y # Y or N 'Require uppercase comments
-
- Drill 2 # Drilling canned/manual cycle
- G81 x[Dwell] d[Depth] b2 F[Frate] Y[Sclear]
- G79 x[H] y[V] z[PointD]
- G79 x[H] y[V] z[PointD]
- end
-
- Peck 2 # Pecking canned/manual cycle
- G83 x[Dwell] d[Depth] b2 F[Frate] Y[Sclear] j.003 K[VBite]
- G79 x[H] y[V] z[PointD]
- G79 x[H] y[V] z[PointD]
- end cancel
-
- Tap 2 # Tapping canned/manual cycle
- G84 x[Dwell] d[Depth] b2 F[Frate] Y[Sclear]
- G79 x[H] y[V] z[PointD]
- G79 x[H] y[V] z[PointD]
- end cancel
-
- Ream 2 # Reaming canned/manual cycle
- G85 x[Dwell] d[Depth] b2 F[Frate] Y[Sclear]
- G79 x[H] y[V] z[PointD]
- G79 x[H] y[V] z[PointD]
- end cancel
-
- Bore 2 # Boring canned/manual cycle
- G86 x[Dwell] d[Depth] b2 F[Frate] Y[Sclear]
- G79 x[H] y[V] z[PointD]
- G79 x[H] y[V] z[PointD]
- end cancel
-
- Back 2 # Back boring canned/manual cycle
- G83 x[Dwell] d[Depth] b2 F[Frate] Y[Sclear] I[VBite] K[VBite]
- G79 x[H] y[V] z[PointD]
- G79 x[H] y[V] z[PointD]
- end cancel
-
- Cancel # Cancel a canned/manual cycle
- end
-
- Index Z # Index the rotary table
- G53 T0 M67
- G0 Y20 Z30
- G0 B[Rotangle]
- G[Work] T[Tool] M67
- G0 X[H] Y[V]
- G0 M[Cool] Z[D]
- end
-
- StartCode # Start of the program
- N[Program#]
- end
-
- 1stToolChange # First tool change
- G17
- G53 T0 M67
- G0 Y20 Z30
- G0 X0
- G[Work]
- S[Speed] T[Tool] M66 (0 ![ToolRad] @[ToolDiam] )0
- M[Direct]
- M[Cool]
- G0 B[Rotangle]
- G0 X[H] Y[V] Z[Rplane]
- End
-
- Infeed # Enable cutter comp
- G1 Z[D] F[Plunge]
- G43 X[H] Y[V] F[FRate]
- G[Side]
- End
-
- Outfeed # Disable cutter comp
- G40
- G1 X[H] Y[V]
- End
-
- ToolChange # Secondary tool changes
- G0 X[ToolH] Y[ToolV] Z[ToolD] M[Cool]
- G0 B[Rotangle]
- S[Speed] T[Tool] M66 (0 ![ToolRad] @[ToolDiam] )0
- G0 X[H] Y[V] Z[RPlane]
- End
-
- EndCode # End of the program
- G0 X[ToolH] Y[ToolV] Z[ToolD] M[Cool]
- G0 B[Rotangle]
- M30
- W0
- End
-
- Replace "%" with "%PM"
- replace "!" with "Tool Radius: "
- replace "@" with "Tool Diam: "
- replace "#" with "Tool Corner: "
- replace "B-360" with "B0"
-